package cn.smart.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FdataExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FdataExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFdidIsNull() {
            addCriterion("fdId is null");
            return (Criteria) this;
        }

        public Criteria andFdidIsNotNull() {
            addCriterion("fdId is not null");
            return (Criteria) this;
        }

        public Criteria andFdidEqualTo(Integer value) {
            addCriterion("fdId =", value, "fdid");
            return (Criteria) this;
        }

        public Criteria andFdidNotEqualTo(Integer value) {
            addCriterion("fdId <>", value, "fdid");
            return (Criteria) this;
        }

        public Criteria andFdidGreaterThan(Integer value) {
            addCriterion("fdId >", value, "fdid");
            return (Criteria) this;
        }

        public Criteria andFdidGreaterThanOrEqualTo(Integer value) {
            addCriterion("fdId >=", value, "fdid");
            return (Criteria) this;
        }

        public Criteria andFdidLessThan(Integer value) {
            addCriterion("fdId <", value, "fdid");
            return (Criteria) this;
        }

        public Criteria andFdidLessThanOrEqualTo(Integer value) {
            addCriterion("fdId <=", value, "fdid");
            return (Criteria) this;
        }

        public Criteria andFdidIn(List<Integer> values) {
            addCriterion("fdId in", values, "fdid");
            return (Criteria) this;
        }

        public Criteria andFdidNotIn(List<Integer> values) {
            addCriterion("fdId not in", values, "fdid");
            return (Criteria) this;
        }

        public Criteria andFdidBetween(Integer value1, Integer value2) {
            addCriterion("fdId between", value1, value2, "fdid");
            return (Criteria) this;
        }

        public Criteria andFdidNotBetween(Integer value1, Integer value2) {
            addCriterion("fdId not between", value1, value2, "fdid");
            return (Criteria) this;
        }

        public Criteria andFdtimeIsNull() {
            addCriterion("fdTime is null");
            return (Criteria) this;
        }

        public Criteria andFdtimeIsNotNull() {
            addCriterion("fdTime is not null");
            return (Criteria) this;
        }

        public Criteria andFdtimeEqualTo(Date value) {
            addCriterion("fdTime =", value, "fdtime");
            return (Criteria) this;
        }

        public Criteria andFdtimeNotEqualTo(Date value) {
            addCriterion("fdTime <>", value, "fdtime");
            return (Criteria) this;
        }

        public Criteria andFdtimeGreaterThan(Date value) {
            addCriterion("fdTime >", value, "fdtime");
            return (Criteria) this;
        }

        public Criteria andFdtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("fdTime >=", value, "fdtime");
            return (Criteria) this;
        }

        public Criteria andFdtimeLessThan(Date value) {
            addCriterion("fdTime <", value, "fdtime");
            return (Criteria) this;
        }

        public Criteria andFdtimeLessThanOrEqualTo(Date value) {
            addCriterion("fdTime <=", value, "fdtime");
            return (Criteria) this;
        }

        public Criteria andFdtimeIn(List<Date> values) {
            addCriterion("fdTime in", values, "fdtime");
            return (Criteria) this;
        }

        public Criteria andFdtimeNotIn(List<Date> values) {
            addCriterion("fdTime not in", values, "fdtime");
            return (Criteria) this;
        }

        public Criteria andFdtimeBetween(Date value1, Date value2) {
            addCriterion("fdTime between", value1, value2, "fdtime");
            return (Criteria) this;
        }

        public Criteria andFdtimeNotBetween(Date value1, Date value2) {
            addCriterion("fdTime not between", value1, value2, "fdtime");
            return (Criteria) this;
        }

        public Criteria andFdairhumidityIsNull() {
            addCriterion("fdAirHumidity is null");
            return (Criteria) this;
        }

        public Criteria andFdairhumidityIsNotNull() {
            addCriterion("fdAirHumidity is not null");
            return (Criteria) this;
        }

        public Criteria andFdairhumidityEqualTo(Integer value) {
            addCriterion("fdAirHumidity =", value, "fdairhumidity");
            return (Criteria) this;
        }

        public Criteria andFdairhumidityNotEqualTo(Integer value) {
            addCriterion("fdAirHumidity <>", value, "fdairhumidity");
            return (Criteria) this;
        }

        public Criteria andFdairhumidityGreaterThan(Integer value) {
            addCriterion("fdAirHumidity >", value, "fdairhumidity");
            return (Criteria) this;
        }

        public Criteria andFdairhumidityGreaterThanOrEqualTo(Integer value) {
            addCriterion("fdAirHumidity >=", value, "fdairhumidity");
            return (Criteria) this;
        }

        public Criteria andFdairhumidityLessThan(Integer value) {
            addCriterion("fdAirHumidity <", value, "fdairhumidity");
            return (Criteria) this;
        }

        public Criteria andFdairhumidityLessThanOrEqualTo(Integer value) {
            addCriterion("fdAirHumidity <=", value, "fdairhumidity");
            return (Criteria) this;
        }

        public Criteria andFdairhumidityIn(List<Integer> values) {
            addCriterion("fdAirHumidity in", values, "fdairhumidity");
            return (Criteria) this;
        }

        public Criteria andFdairhumidityNotIn(List<Integer> values) {
            addCriterion("fdAirHumidity not in", values, "fdairhumidity");
            return (Criteria) this;
        }

        public Criteria andFdairhumidityBetween(Integer value1, Integer value2) {
            addCriterion("fdAirHumidity between", value1, value2, "fdairhumidity");
            return (Criteria) this;
        }

        public Criteria andFdairhumidityNotBetween(Integer value1, Integer value2) {
            addCriterion("fdAirHumidity not between", value1, value2, "fdairhumidity");
            return (Criteria) this;
        }

        public Criteria andFdairtemperatureIsNull() {
            addCriterion("fdAirTemperature is null");
            return (Criteria) this;
        }

        public Criteria andFdairtemperatureIsNotNull() {
            addCriterion("fdAirTemperature is not null");
            return (Criteria) this;
        }

        public Criteria andFdairtemperatureEqualTo(Integer value) {
            addCriterion("fdAirTemperature =", value, "fdairtemperature");
            return (Criteria) this;
        }

        public Criteria andFdairtemperatureNotEqualTo(Integer value) {
            addCriterion("fdAirTemperature <>", value, "fdairtemperature");
            return (Criteria) this;
        }

        public Criteria andFdairtemperatureGreaterThan(Integer value) {
            addCriterion("fdAirTemperature >", value, "fdairtemperature");
            return (Criteria) this;
        }

        public Criteria andFdairtemperatureGreaterThanOrEqualTo(Integer value) {
            addCriterion("fdAirTemperature >=", value, "fdairtemperature");
            return (Criteria) this;
        }

        public Criteria andFdairtemperatureLessThan(Integer value) {
            addCriterion("fdAirTemperature <", value, "fdairtemperature");
            return (Criteria) this;
        }

        public Criteria andFdairtemperatureLessThanOrEqualTo(Integer value) {
            addCriterion("fdAirTemperature <=", value, "fdairtemperature");
            return (Criteria) this;
        }

        public Criteria andFdairtemperatureIn(List<Integer> values) {
            addCriterion("fdAirTemperature in", values, "fdairtemperature");
            return (Criteria) this;
        }

        public Criteria andFdairtemperatureNotIn(List<Integer> values) {
            addCriterion("fdAirTemperature not in", values, "fdairtemperature");
            return (Criteria) this;
        }

        public Criteria andFdairtemperatureBetween(Integer value1, Integer value2) {
            addCriterion("fdAirTemperature between", value1, value2, "fdairtemperature");
            return (Criteria) this;
        }

        public Criteria andFdairtemperatureNotBetween(Integer value1, Integer value2) {
            addCriterion("fdAirTemperature not between", value1, value2, "fdairtemperature");
            return (Criteria) this;
        }

        public Criteria andFdsoildrynessIsNull() {
            addCriterion("fdSoilDryness is null");
            return (Criteria) this;
        }

        public Criteria andFdsoildrynessIsNotNull() {
            addCriterion("fdSoilDryness is not null");
            return (Criteria) this;
        }

        public Criteria andFdsoildrynessEqualTo(Integer value) {
            addCriterion("fdSoilDryness =", value, "fdsoildryness");
            return (Criteria) this;
        }

        public Criteria andFdsoildrynessNotEqualTo(Integer value) {
            addCriterion("fdSoilDryness <>", value, "fdsoildryness");
            return (Criteria) this;
        }

        public Criteria andFdsoildrynessGreaterThan(Integer value) {
            addCriterion("fdSoilDryness >", value, "fdsoildryness");
            return (Criteria) this;
        }

        public Criteria andFdsoildrynessGreaterThanOrEqualTo(Integer value) {
            addCriterion("fdSoilDryness >=", value, "fdsoildryness");
            return (Criteria) this;
        }

        public Criteria andFdsoildrynessLessThan(Integer value) {
            addCriterion("fdSoilDryness <", value, "fdsoildryness");
            return (Criteria) this;
        }

        public Criteria andFdsoildrynessLessThanOrEqualTo(Integer value) {
            addCriterion("fdSoilDryness <=", value, "fdsoildryness");
            return (Criteria) this;
        }

        public Criteria andFdsoildrynessIn(List<Integer> values) {
            addCriterion("fdSoilDryness in", values, "fdsoildryness");
            return (Criteria) this;
        }

        public Criteria andFdsoildrynessNotIn(List<Integer> values) {
            addCriterion("fdSoilDryness not in", values, "fdsoildryness");
            return (Criteria) this;
        }

        public Criteria andFdsoildrynessBetween(Integer value1, Integer value2) {
            addCriterion("fdSoilDryness between", value1, value2, "fdsoildryness");
            return (Criteria) this;
        }

        public Criteria andFdsoildrynessNotBetween(Integer value1, Integer value2) {
            addCriterion("fdSoilDryness not between", value1, value2, "fdsoildryness");
            return (Criteria) this;
        }

        public Criteria andFdgidIsNull() {
            addCriterion("fdGId is null");
            return (Criteria) this;
        }

        public Criteria andFdgidIsNotNull() {
            addCriterion("fdGId is not null");
            return (Criteria) this;
        }

        public Criteria andFdgidEqualTo(Integer value) {
            addCriterion("fdGId =", value, "fdgid");
            return (Criteria) this;
        }

        public Criteria andFdgidNotEqualTo(Integer value) {
            addCriterion("fdGId <>", value, "fdgid");
            return (Criteria) this;
        }

        public Criteria andFdgidGreaterThan(Integer value) {
            addCriterion("fdGId >", value, "fdgid");
            return (Criteria) this;
        }

        public Criteria andFdgidGreaterThanOrEqualTo(Integer value) {
            addCriterion("fdGId >=", value, "fdgid");
            return (Criteria) this;
        }

        public Criteria andFdgidLessThan(Integer value) {
            addCriterion("fdGId <", value, "fdgid");
            return (Criteria) this;
        }

        public Criteria andFdgidLessThanOrEqualTo(Integer value) {
            addCriterion("fdGId <=", value, "fdgid");
            return (Criteria) this;
        }

        public Criteria andFdgidIn(List<Integer> values) {
            addCriterion("fdGId in", values, "fdgid");
            return (Criteria) this;
        }

        public Criteria andFdgidNotIn(List<Integer> values) {
            addCriterion("fdGId not in", values, "fdgid");
            return (Criteria) this;
        }

        public Criteria andFdgidBetween(Integer value1, Integer value2) {
            addCriterion("fdGId between", value1, value2, "fdgid");
            return (Criteria) this;
        }

        public Criteria andFdgidNotBetween(Integer value1, Integer value2) {
            addCriterion("fdGId not between", value1, value2, "fdgid");
            return (Criteria) this;
        }

        public Criteria andFdfgidIsNull() {
            addCriterion("fdFGId is null");
            return (Criteria) this;
        }

        public Criteria andFdfgidIsNotNull() {
            addCriterion("fdFGId is not null");
            return (Criteria) this;
        }

        public Criteria andFdfgidEqualTo(Integer value) {
            addCriterion("fdFGId =", value, "fdfgid");
            return (Criteria) this;
        }

        public Criteria andFdfgidNotEqualTo(Integer value) {
            addCriterion("fdFGId <>", value, "fdfgid");
            return (Criteria) this;
        }

        public Criteria andFdfgidGreaterThan(Integer value) {
            addCriterion("fdFGId >", value, "fdfgid");
            return (Criteria) this;
        }

        public Criteria andFdfgidGreaterThanOrEqualTo(Integer value) {
            addCriterion("fdFGId >=", value, "fdfgid");
            return (Criteria) this;
        }

        public Criteria andFdfgidLessThan(Integer value) {
            addCriterion("fdFGId <", value, "fdfgid");
            return (Criteria) this;
        }

        public Criteria andFdfgidLessThanOrEqualTo(Integer value) {
            addCriterion("fdFGId <=", value, "fdfgid");
            return (Criteria) this;
        }

        public Criteria andFdfgidIn(List<Integer> values) {
            addCriterion("fdFGId in", values, "fdfgid");
            return (Criteria) this;
        }

        public Criteria andFdfgidNotIn(List<Integer> values) {
            addCriterion("fdFGId not in", values, "fdfgid");
            return (Criteria) this;
        }

        public Criteria andFdfgidBetween(Integer value1, Integer value2) {
            addCriterion("fdFGId between", value1, value2, "fdfgid");
            return (Criteria) this;
        }

        public Criteria andFdfgidNotBetween(Integer value1, Integer value2) {
            addCriterion("fdFGId not between", value1, value2, "fdfgid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}